//
//  IManager+membersModule.m
//  RocketProject
//
//  Created by Wu Chengwei on 13-6-18.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import "IManager+membersModule.h"
#import "FrameworkRelativeDefines.h"
#import "NetUrlDefines.h"
#import "RequestUtlity.h"
#import "RCMemberInfoDataModel.h"

@implementation IManager(membersModule)

-(int64_t)requestMembersInfo:(id<IManagerDelegate>)delegate{
    if (nil == delegate) {
        return kInvalidRequestId;
    }
    // 异步获取数据
    NSString *urlSuffix = kRCMembersInfoUrlPrefix;
    NSString *url = [RequestUtlity getFormattedUrl:urlSuffix];
//    url = @"http://223.4.99.93/17ruyi/api.php?op=member&action=detail";
    KFLog(@"request url %@",url);
    return [[IDataProvider sharedInstance] asyncFetchDataWithUserInfo:url
                                                             userInfo:nil
                                                      withCachePolicy:IDataCachePolicyLocalFileAndNetwork
                                                   withDataParseClass:[RCMemberInfoDataModel class]
                                                     withDataDelegate:delegate];
}

@end
